<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图片轮播</title>
  <link rel="stylesheet" type="text/css" href="./css/index.css" />
</head>

<body>
  <section aria-label="图片列表">
    <div class="carousel" data-carousel>
      <button class="carousel-button prev" data-carousel-button="prev">
        上一张
      </button>
      <button class="carousel-button next" data-carousel-button="next">
        下一张
      </button>
      <ul data-slides>
        <li class="slide" data-active>
          <img src="./images/demo1.jpg" alt="示例图片1" />
        </li>
        <li class="slide">
          <img src="./images/demo2.jpg" alt="示例图片2" />
        </li>
        <li class="slide">
          <img src="./images/demo3.jpg" alt="示例图片3" />
        </li>
        <li class="slide">
          <img src="./images/demo4.jpg" alt="示例图片4" />
        </li>
        <li class="slide">
          <img src="./images/demo5.jpg" alt="示例图片5" />
        </li>
      </ul>
    </div>
  </section>
</body>

<script src="./js/index.js"></script>

</html>